<?php
namespace app\tools\controller;
use app\tools\logic\ApiLogic;
use app\tools\logic\ConfigLogic;
class Config extends Base{
    //获取配置列表
    function getList(){
     	$data = ConfigLogic::getList();
		return ApiLogic::return(0,'',$data);
    }

    //保存
	function save(){
		$rs = ConfigLogic::save();
		if($rs){
			return ApiLogic::return($rs);
		}else{
			return ApiLogic::return(0);
		}
	}
}
